package club.caihappy.demo01;

import lombok.AllArgsConstructor;

/**
 * Created by 百岁 on 2021/7/9
 **/
@AllArgsConstructor
public class Proxy implements Rent {
    private Host host;

    @Override
    public void rent() {
        seeHouse();
        host.rent();
        hetong();
        fare();
    }
    public void seeHouse(){
        System.out.println("中介带你看房子");
    }
    public void hetong(){
        System.out.println("中介带你签合同");
    }
    public void  fare(){
        System.out.println("中介收你中介费");
    }
}
